package com.atguigu.yygh.hosp.respository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {


    /**
     * 查询科室信息
     *
     * @param hoscode 医院编码
     * @param depcode 科室编码
     * @return 科室
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);

}
